package cn.wolfcode.demo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;


/*
*实体类
 */
@Setter
@Getter
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Document("userw")
@TableName("user")
public class User {
    @Id
    @TableField(exist = false)
    private String id;
    @TableId(value = "uid",type = IdType.AUTO)
    private Long uid;
    @TableField("username")
    private String username;
    @TableField("password")
    private String password;
}
